From b7e67b038fe0d1ffbf5227024c06fe90b86a6d51 Mon Sep 17 00:00:00 2001 From: "kfraser@localhost.localdomain" Date: Thu, 4 Jan 2007 10:20:45 +0000 Subject: [PATCH] [XEND] Fix allocation of fixed VNC ports. From: MArk Williamson Signed-off-by: Keir Fraser --- tools/python/xen/xend/server/vfbif.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/python/xen/xend/server/vfbif.py b/tools/python/xen/xend/server/vfbif.py index d07cd2f9e8..816dcd5a6f 100644 --- a/tools/python/xen/xend/server/vfbif.py +++ b/tools/python/xen/xend/server/vfbif.py @@ -64,7 +64,7 @@ class VfbifController(DevController): if config.has_key("vncunused"): args += ["--unused"] elif config.has_key("vncdisplay"): - args += ["--vncport", "%d" % (5900 + config["vncdisplay"])] + args += ["--vncport", "%d" % (5900 + int(config["vncdisplay"]))] vnclisten = config.get("vnclisten", xen.xend.XendRoot.instance().get_vnclisten_address()) args += [ "--listen", vnclisten ] -- 2.30.2